package by.vkhalko.asamo.services;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import by.vkhalko.asamo.datamodel.Company;

public interface CompanyService {
	Company get(Long id);

	@Transactional
	void saveOrUpdate(Company company);

	@Transactional
	void delete(Company company);

	@Transactional
	void deleteAll();

	List<Company> getAllCompanies();

	List<Company> getAllCompaniesByName(String name);

}
